package com.rms.recruit_management_system.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "departments")
@Schema(description = "部门类")
public class Department implements Serializable {

    @TableId(value = "department_id",type= IdType.AUTO)
    @Schema(description = "部门id")
    private Integer departmentId;
    @TableField(value = "department_name")
    @Schema(description = "部门名称")
    private String departmentName;
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @TableField(value = "update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
